<template>
<!-- <button @click="sendMsg">向父组件传递数据</button> -->
 <div>
<p>123</p>
<p class= "dee">1231</p>
</div>
</template>
<script setup>
const emit=defineEmits(["updateMsg"])
// function sendMsg(){
//     const msg = "这是子组件的数据";
    emit("updateMsg",{text:"子组件文本",Count:"12"})
// }
</script>
<style scoped>

</style>